package com.zae.io;

import java.io.InputStream;

public class Resources {
    /**
     * 根据xml路径将xml文件加载成字节流，存放在内存中
     * @param path
     * @return
     */
    public static InputStream getInputStreamByXml(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
